package com.example.makedata;

import com.example.makedata.service.DataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class MakedataApplication implements CommandLineRunner {
    @Autowired
    DataService dataService;

    public static void main(String[] args) {
        SpringApplication.run(MakedataApplication.class, args);
    }

    @Override
    public void run(String... args) throws Exception {
        dataService.dealData();
    }
}
